package com.vhall.component.entity.chat.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author lsl
 * @since 2021/5/8
 */
@Data
public class ApplyMessageSendReqVO implements Serializable {

    @ParamName("channel_id")
    @NotBlank(message = "参数错误")
    private String channelId;

    @ParamName("third_party_user_id")
    @NotBlank(message = "参数错误")
    private String thirdPartyUserId;

    @NotBlank(message = "参数错误")
    @Pattern(regexp = "(pc_browser)|(h5_browser)|(android)|(ios)|(desktop)|(wechat_browser)|(wechat_applet)", message = "参数错误")
    private String client;

    @ParamName("msg_id")
    @NotBlank(message = "参数错误")
    private String msgId;

    @NotNull(message = "参数错误")
    @Range(min = 1, max = 2, message = "参数错误")
    private Integer status;

    @ParamName("vss_token")
    private String vssToken;

    @NotBlank(message = "参数错误")
    private String from;


}
